﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CylTest
{
    public enum InDefine0
    {
        AlignCyl = 0,
    }

    interface IUpdate
    {
        void Update();
    }

    public class Input : IUpdate
    {
        private int InputNum;
        public ushort[] In;

        public Input(int inNum)
        {
            this.InputNum = inNum;
            In = new ushort[InputNum];
        }

        public bool Aligner { get{return CheckBit(0, (int)InDefine0.AlignCyl);}  }

        bool CheckBit(int InNum, int Loc)
        {
            if ((In[InNum] & (0x1 << Loc)) != 0)
                return true;
            else
                return false;
        }

        public void Update()
        {

        }
    }
}
